package com.google.android.gms.internal;

import java.io.IOException;

public final class zzbe extends zzflm<zzbe> {
    public byte[] data = null;
    public byte[] zzgk = null;
    public byte[] zzgl = null;
    public byte[] zzgm = null;

    public zzbe() {
        this.zzpnr = -1;
    }

    public final /* synthetic */ zzfls zza(zzflj zzflj) throws IOException {
        while (true) {
            int zzcxx = zzflj.zzcxx();
            if (zzcxx == 0) {
                return this;
            }
            if (zzcxx == 10) {
                this.data = zzflj.readBytes();
            } else if (zzcxx == 18) {
                this.zzgk = zzflj.readBytes();
            } else if (zzcxx == 26) {
                this.zzgl = zzflj.readBytes();
            } else if (zzcxx == 34) {
                this.zzgm = zzflj.readBytes();
            } else if (!super.zza(zzflj, zzcxx)) {
                return this;
            }
        }
    }

    public final void zza(zzflk zzflk) throws IOException {
        if (this.data != null) {
            zzflk.zzc(1, this.data);
        }
        if (this.zzgk != null) {
            zzflk.zzc(2, this.zzgk);
        }
        if (this.zzgl != null) {
            zzflk.zzc(3, this.zzgl);
        }
        if (this.zzgm != null) {
            zzflk.zzc(4, this.zzgm);
        }
        super.zza(zzflk);
    }

    /* access modifiers changed from: protected */
    public final int zzq() {
        int zzq = super.zzq();
        if (this.data != null) {
            zzq += zzflk.zzd(1, this.data);
        }
        if (this.zzgk != null) {
            zzq += zzflk.zzd(2, this.zzgk);
        }
        if (this.zzgl != null) {
            zzq += zzflk.zzd(3, this.zzgl);
        }
        return this.zzgm != null ? zzq + zzflk.zzd(4, this.zzgm) : zzq;
    }
}
